package com.elong.businesstravel.protocol.unionlogin;

import org.apache.http.Header;
import org.apache.http.HttpEntity;

import android.content.Context;

import com.android.support.jhf.debug.DebugLog;
import com.android.support.jhf.network.BaseHttpRequest;
import com.android.support.jhf.network.loopj.android.http.RequestParams;
import com.elong.businesstravel.base.unionlogin.weixin.WeChatUnionLogin;
/**
 * 获取微信联合登陆的openid
 * @author lenovo
 *
 */
public class GetOpenIdRequest extends BaseHttpRequest {

	private String mUrl;
	
	/**
	 * 
	 * @param context
	 * @param code 授权之后返回的token
	 */
	public GetOpenIdRequest(Context context, String code) {
		super(context);
		mUrl = WeChatUnionLogin.URL_GET_OPEN_ID.replace("%code@", code);
		DebugLog.logI(mUrl);
	}

	@Override
	public Context getContext() {
		return mContextWeakReference.get();
	}

	@Override
	public String getAbsoluteUrl() {
		return mUrl;
	}

	@Override
	public Header[] getHeaders() {
		return null;
	}

	@Override
	public RequestParams getRequestParams() {
		return null;
	}

	@Override
	public HttpEntity getRequestEntity() {
		return null;
	}

	@Override
	public String getPostContentType() {
		return null;
	}

}
